﻿using Model;
using UserDTO;

namespace IBll
{
    public interface IUserBll
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<int> Add(UserInfo userInfo);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<int> Update(UserInfo userInfo);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="UserId"></param>
        /// <returns></returns>
        Task<int> Delete(int UserId);
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        dynamic GetAll(string? name, int? Kage, int? Jage, int? tid, int? sex);
        /// <summary>
        /// 逻辑删除
        /// </summary>
        /// <param name="UserId"></param>
        /// <returns></returns>
        Task<int> IsDelete(int UserId);
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        int Login(string name,string pwd);

        dt Show(int pageindex,int pagesize);
    }
}
